const os = require('os');;

function printProgramInfo() {
  console.log('当前用户', os.userInfo().username);
  console.log('当前进程 ID', process.pid);
  console.log('当前脚本路径', __filename);
  console.log('当前时间', getCurrentTime());
}

function getCurrentTime() {
  const time = new Date();
  return time.toLocaleString();
}

module.exports = printProgramInfo;